package com.csxy.yuekaiyeye.controller;

import com.csxy.yuekaiyeye.R;
import com.csxy.yuekaiyeye.entity.vo.CourseInfoForm;
import com.csxy.yuekaiyeye.service.EduCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/eduservice/course")
public class EduCourseController {
    @Autowired
    private EduCourseService eduCourseService;

    @RequestMapping("/addCourseInfo")
    public String addCourseInfo(@RequestBody CourseInfoForm courseInfoForm) {
        // TODO: 调用service方法并返回结果
        return eduCourseService.addCourseInfo(courseInfoForm);
    }

}
